﻿@model Hope.Gallery.Models.Album

@{
    ViewBag.Title = "CreateNew";
}

<br />
<br />
<br />

<div class="page-header">
    <h1>Album</h1>
  </div>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>



@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    
    <fieldset>
        <legend>Adauga un album nou</legend>

        <div class="clearfix">
            @Html.LabelFor(model => model.Title)
            <div class="input">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>
        </div>

        <div class="clearfix">
            @Html.LabelFor(model => model.Description)
            <div class="input">
                @Html.EditorFor(model => model.Description)
                @Html.ValidationMessageFor(model => model.Description)
            </div>
        </div>

       <div class="actions">
            <input type="submit" class="btn primary" value="Create" />
       </div>

    </fieldset>
}

<div>
    @Html.ActionLink("Inapoi la Albume", "Albums")
</div>
